package com.education.user.feign;


import com.education.common.utils.ApiReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "welco-service")
public interface lResourceFeign {

    @RequestMapping(value = "/lResources/add2",method = RequestMethod.GET)
    String add2(@RequestParam(value = "fileName") String fileName,
                @RequestParam(value = "fileUrl") String fileUrl,
                @RequestParam(value = "type") String type,
                @RequestParam(value = "catalogId") Integer catalogId

    );

    @RequestMapping(value = "/lResources/videoAdd",method = RequestMethod.GET)
    ApiReturnObject videoAdd(@RequestParam(value = "id") Integer id,
                             @RequestParam(value = "type") String type,
                             @RequestParam(value = "videoUrl") String videoUrl,
                             @RequestParam(value = "fileName") String fileName

    );
}
